<?php

namespace Constants;

class StatusCode {
    const SucceedCode = 1;
    const FailedCode = -1;
}



class ChargeMode {
    const ChargeModeTimeMode = 0;           // 0: 时间模式
    const ChargeModeEnergyMode = 1;         // 1: 电量模式
    const ChargeModePowerMode = 2;          // 2: 功率模式
    const ChargeModeTimeMode2 = 7;          // 7: 时间模式2
    const ChargeModeEnergyMode2 = 8;        // 8: 电量模式2
    const ChargeModePowerMode2 = 9;         // 9: 功率模式2
    const ChargeModeStandardEnergyMode = 11; // 11: 标准电量模式（汽车交流桩）
}

// constants/RestartType.php
namespace Constants;

class RestartType {
    const RestartTypeModule = 0;            // 0: 模块重启
    const RestartTypeMicrocontroller = 1;   // 1: 单片机重启
}

// constants/DeviceType.php
namespace Constants;

class DeviceType {
    const DeviceTypeNormalSlowCharge = 0;   // 0: 普通慢充款
    const DeviceTypePowerSlowCharge = 1;    // 1: 功率慢充款
    const DeviceTypeEnergySlowCharge = 2;   // 2: 电量慢充款
    const DeviceTypeFastCharge = 3;         // 3: 快充款
    const DeviceTypePower10 = 4;            // 4: 功率款10
    const DeviceTypeEnergy20 = 5;           // 5: 电量款20
    const DeviceTypeDualPowerSlowCharge = 6; // 6: 两路功率慢充
    const DeviceTypeNormalPower = 8;        // 8: 普通功率款
    const DeviceTypeLoraGateway = 9;        // 9: lora网关
    const DeviceTypeLoraNode = 10;          // 10: lora节点
    const DeviceTypePower10C = 11;          // 11: 功率款10C
    const DeviceTypeCarACCharger70 = 12;    // 12: 汽车交流桩70
    const DeviceTypeCarSlowCharger = 13;    // 13: 汽车慢充桩
    const DeviceTypeCarACChargerDualGun = 18; // 18: 汽车交流桩双枪
    const DeviceTypeCarFastCharger = 17;    // 17: 汽车快充桩
    const DeviceTypeDualPower10A = 19;      // 19: 两路功率款-10A
    const DeviceTypeDualPower16A = 20;      // 20: 两路功率款-16A
    const DeviceTypeCarHomeCharger = 21;    // 21: 汽车家用充电桩
}

// constants/IsErrorType.php
namespace Constants;

class IsErrorType {
    const IsErrorTypeOK = 0;     // 0: 设置端口正常
    const IsErrorTypeNotOK = 1;  // 1: 设置端口故障
}

// constants/ChargeType.php
namespace Constants;

class ChargeType {
    const ChargeTypeFixed = 'fixed';  // 固定
    const ChargeTypeCustom = 'custom'; // 自定义
}

// constants/WhetherRefund.php
namespace Constants;

class WhetherRefund {
    const WhetherRefundNo = 0;  // 不可退款
    const WhetherRefundYes = 1; // 可退款
}

// constants/IsFreeCharge.php
namespace Constants;

class IsFreeCharge {
    const IsFreeChargeNeedPay = 0; // 付费充电
    const IsFreeChargeYes = 1;     // 免费充电
}

// constants/IsOutage.php
namespace Constants;

class IsOutage {
    const IsOutageNoLimit = 0;  // 不禁止
    const IsOutageLimited = 1;  // 禁止
}
